import *as API from './index'
export default {
    //注册接口
    register: params => {
        return API.POST('/api/v1/auth/reg', params)
    },
    //登录接口
    login: params => {
        return API.POST('/api/v1/auth/login', params)
    },
    //首页
    list: params => {
        return API.GET('/api/v1/products', params)
    },
}